<template>
  <div id="app">
    <div id="nav">
      <el-container>
        <el-header>
          <el-menu :default-active="'1'" class="menu" active-text-color="#42b983" mode="horizontal">
            <el-menu-item index="1"><router-link to="/">3D查看场景</router-link></el-menu-item>
            <el-menu-item index="2"><router-link to="/about">2D编辑场景</router-link></el-menu-item>
          </el-menu>
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </div>

  </div>
</template>

<style lang="scss">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 0px;

  menu, a {
    font-size: 20px;
    font-weight: bold;
    text-decoration:none;
  }

  .el-main {
    overflow: none;
  }
}
</style>
